package com.jiyiren.bms;

/**
 * Created by yiji on 2016/11/15.
 */

public class MyConfig {
    //URL
    public static final String BASE_NET_URL="http://115.28.138.132";
    public static final String URL_POST_BATTERYINFO=BASE_NET_URL+"/index.php/home/Index/insertbatinfo";



    //KEY
    public static final String KEY_ID="id";
    public static final String KEY_TYPE="type";
    public static final String KEY_CAPACITY="capacity";
    public static final String KEY_REMAIN="remain";
    public static final String KEY_VOLTAGE="voltage";
    public static final String KEY_TEMPERATURE="temperature";
    public static final String KEY_LONGITUDE="longitude";
    public static final String KEY_LATITUDE="latitude";
    public static final String KEY_HEALTH="health";

    public static final String KEY_STATE="state";
    public static final String KEY_MSG="msg";


    //SHAREDPREFERENCE_KEY
    public static final String SHAREDPREFERENCE_NAME="share_bms";
    public static final String SHARED_USER_ID="userid";
    public static final String SHARED_SIMU_USER_ID="simuuserid";

    public static final String SHARED_LAT="latitude";
    public static final String SHARED_LNG="longitude";
    public static final String SHARED_TOGGLE_ON="istoggled";
    public static final String SHARED_LANGUAGE="language";

    //RESULT VALUE
    public static final String RESULT_SUCCESS_INSERT="11";
    public static final String RESULT_SUCCESS_UPDATE="12";
    public static final String RESULT_FAIL="0";

}
